using System;
using System.Text;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace My.IdlConverter.Core.Exceptions
{
    public class TypeNotFoundException : ApplicationException
    {
        private string _typeString;

        public TypeNotFoundException()
            :base()
        {
        }

        public TypeNotFoundException(string message)
            :base(message)
        {
        }

        public TypeNotFoundException(string message,string typeString)
            :base(message)
        {
            _typeString = typeString;
        }

        public string TypeString
        {
            get
            {
                return _typeString;
            }
        }

        protected TypeNotFoundException(SerializationInfo info, StreamingContext context)
            :base(info,context)
        {
        }

        public TypeNotFoundException(string message, Exception innerException)
            :base(message,innerException)
        {
        }

    }
}
